package com.metaera.app.controller.view;

import android.widget.Toast;

import com.metaera.app.MetaEraApplication;
import com.metaera.app.controller.view.core.INetworkRequestView;

public class MsgNetworkRequestView implements INetworkRequestView<String> {

    @Override
    public void successful(String data) {
        Toast.makeText(MetaEraApplication.sInstance, data, Toast.LENGTH_SHORT).show();
    }

    @Override
    public void loading() {

    }

    @Override
    public void failure(Throwable throwable) {
        throwable.printStackTrace();
        Toast.makeText(MetaEraApplication.sInstance, throwable.getMessage(), Toast.LENGTH_SHORT).show();
    }

}
